layui.use(['jquery','layer','form','table','laydate','upload'],function(){
    var $ = layui.$,layer = layui.layer,form = layui.form,table = layui.table,laydate = layui.laydate,upload = layui.upload;


var advancedRetrieval = parent.$('#advancedRetrieval').val();
console.log(advancedRetrieval);
ascertain = function ascertain(){
    var account = $('input[name=account]').val();
    var fullName = $('input[name=fullName]').val();
    var idCard = $('input[name=idCard]').val();
    var phone = $('input[name=phone]').val();
    var position = $('select[name=position]').val();
    var applyDate = $('input[name=applyDate]').val();
    var data = {
        'account': account
        ,'fullName': fullName
        ,'idCard': idCard
        ,'phone': phone
        ,'position': position
        ,'applyDate': applyDate
        ,'result': 1
    }
    $.ajax({
        url: '/user/'+advancedRetrieval
        ,data: data
        ,dataType: 'json'
        ,success:function(data){
            console.log(data.data);
            parent.tableRender(data.data);
            var layer = parent.layer;
            layer.close(layer.index);
            layer.msg('筛选出以下内容');
        }
    });
}

cancel = function cancel(){
    var layer = parent.layer;
    layer.close(layer.index);
}


});